import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

// 引入Vant
import { 
  Button, 
  NavBar, 
  Tabbar, 
  TabbarItem, 
  Image as VanImage, 
  Card,
  Cell,
  CellGroup,
  Form, 
  Field 
} from 'vant'
import 'vant/lib/index.css'

// 创建Vue应用
const app = createApp(App)

// 使用Pinia状态管理
app.use(createPinia())
// 使用路由
app.use(router)

// 注册Vant组件
app.use(Button)
app.use(NavBar)
app.use(Tabbar)
app.use(TabbarItem)
app.use(VanImage)
app.use(Card)
app.use(Cell)
app.use(CellGroup)
app.use(Form)
app.use(Field)

// 挂载应用
app.mount('#app') 